class Point{
     constructor(x,y){//构造函数
          this.x=x
          this.y=y
     }
     toString(){
    return `(${this.x},${this.y})`
}
    static toSum(a,b){
        return a+b
     }
}
var p=new Point(1,2)
//console.log(p.toSum(1,2))
console.log(p.toString())